from utils.client import APIClient
from utils.yaml_config import get_yaml

data = get_yaml('report.yaml')

class Api_Report:

    def __init__(self,client:APIClient):
        self.client = client

    def report_list(self,index=0):
        report_data = data['list']['request']
        return self.client.request(report_data['method'],report_data['path'],json=report_data['json'][index])